package com.campus.service.impl;

import com.campus.dao.EvaluationDao;
import com.campus.model.Evaluation;
import com.campus.service.EvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @desc: 评价服务实现类
 * @author: hjm
 * @date: 2024/11/22
 */
@Service
public class EvaluationServiceImpl implements EvaluationService {
    @Autowired
    private EvaluationDao evaluationDao;

    /**
     * 添加评价
     *
     * @param evaluation 评价对象
     * @return 受影响的行数
     */
    @Override
    public Integer addEvaluation(Evaluation evaluation) {
        return evaluationDao.addEvaluation(evaluation);
    }
}